package com.podcstr.service;

import com.podcstr.entity.Podcast;
import com.podcstr.service.exception.ServiceException;

import java.util.List;

/**
 * @author azim
 * @since 5/19/13 
 */
public interface PodcastService {

    void add(Podcast podcast) throws ServiceException;

    List<Podcast> findAll();

    void delete(long podcastId);

    void toggleAccess(long podcastId);

    void update(Podcast podcast);

    Podcast findByPodcastName(String podcastName);

    List<Podcast> findByUserId(long userId);

    List<Podcast> findByTags(String tag);

    List<Podcast> findByCategoryId(long categoryId);

    long countPodcastByUserId(long userId);

    List<Podcast> searchPodcast(String word);

}
